package com.windowes.weichang.controller.manage;

import com.windowes.weichang.common.ServerResponse;
import com.windowes.weichang.service.StatisticService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 *
 * @author: yangqing
 * @email: qing.yang@bangdao-tech.com
 * @createTime: 2018/6/18 下午5:04
 * @description:
 *
 **/
@Api(description = "统计相关API")
@RestController
@RequestMapping("statistic")
public class StatisticController {


    @Autowired
    StatisticService statisticService;

    @ApiOperation(value = "首页统计信息", notes = "excel文件导入")
    @GetMapping("home")
    public ServerResponse getStatistic() {
        return statisticService.getHome();
    }


}
